package com.duoduo.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.duoduo.mall.dto.RegisterDTO;
import com.duoduo.mall.utils.PageUtils;
import com.duoduo.mall.entity.UserEntity;
import com.duoduo.mall.dto.RegisterDTO;
import com.duoduo.mall.dto.LoginDTO;
import com.duoduo.mall.vo.UserVO;
import com.duoduo.mall.dto.UserUpdateDTO;
import com.duoduo.mall.dto.PasswordUpdateDTO;
import com.duoduo.mall.vo.LoginVO;

import javax.validation.Valid;
import java.util.List;
import java.util.Map;

/**
 * 用户表
 *
 * @author zhuge
 * @email 1399671339@qq.com
 * @date 2024-12-26 13:10:05
 */
public interface UserService extends IService<UserEntity> {

    void register(RegisterDTO registerDTO);

    LoginVO login(LoginDTO loginDTO);

    UserVO getCurrentUserInfo();

    void updateCurrentUserInfo(UserUpdateDTO userUpdateDTO);

    void updatePassword(PasswordUpdateDTO passwordUpdateDTO);

    PageUtils queryPage(Map<String, Object> params);

    UserVO getUserInfoById(Long id);

    void deleteUsersByIds(List<Long> ids);
}
